programming4us
           
 
 
Windows

Windows 7 : Setting Up User Security - Determining Who Is Logged On

- Free product key for windows 10
- Free Product Key for Microsoft office 365
- Malwarebytes Premium 3.7.1 Serial Keys (LifeTime) 2019
12/24/2010 7:41:49 PM

Determining Who Is Logged On

How do you know who’s logged on to a Windows 7 machine? For example, what if you’re sitting down at another person’s computer and you’re not sure who’s logged on and what privileges they have?

No problem. The WHOAMI command gives you information about the user who is currently logged on to the computer:

WHOAMI [/UPN | /FQDN | LOGONID] [/USER | /GROUPS | /PRIV] [/ALL] [/FO format]


This command redirects the current user’s SID, username, groups, and privileges to a file named whoami.txt using the list format, and then opens the file.

For example, start a Command Prompt session on the computer (in Windows 7, select Start, type command into the Search box, and press Enter), and run the following command:

whoami /all /fo list > whoami.txt&&start whoami.txt

Tip

My command is actually two commands in one, thanks to the DOSKEY && operator, which lets you run multiple commands on a single line.


/UPN(Domains only) Returns the current user’s name using the user principal name (UPN) format.
/FQDN(Domains only) Returns the current user’s name using the fully qualified domain name (FQDN) format.
/LOGONIDReturns the current user’s security identifier (SID).
/USERReturns the current username using the computer\user format.
/GROUPSReturns the groups of which the current user is a member.
/PRIVReturns the current user’s privileges.
/ALLReturns the current user’s SID, username, groups, and privileges.
/FO formatThe output format, where format is one of the following values:
 tableThe output is displayed in a row-and-column format, with headers in the first row and values in subsequent rows.
 listThe output is displayed in a two-column list, with the headers in the first column and values in the second column.
 csvThe output is displayed with headers and values separated by commas. The headers appear on the first line.
Other -----------------
- Windows 7 : Setting Up User Security - Using the Guest Account to Give Folks Temporary Access
- Windows 7 : Setting Up User Security - Renaming Built-In Accounts for Better Security
- Windows 7 : Setting Up User Security - Hiding Usernames in the Logon Screen
- Windows 7 : Setting Up User Security - Closing Off Your Computer by Disabling All Other Users
- Windows 7 : Setting Up User Security - Preventing Elevation for All Standard Users
- Windows 7 : Using Parental Controls to Restrict Computer Usage (part 2) - Setting Up Parental Controls for Games
- Windows 7 : Using Parental Controls to Restrict Computer Usage (part 1) - Activating Parental Controls
- Windows 7 : Working with Users and Groups from the Command Line
- Windows 7 : Setting Account Policies (part 2)
- Windows 7 : Setting Account Policies (part 1)
- Windows 7 : Creating and Managing User Accounts (part 2) - Working with the User Accounts Dialog Box
- Windows 7 : Creating and Managing User Accounts (part 1)
- Windows Vista : Managing Local Logon Accounts
- Windows Vista : User Accounts and Groups
- SOA with .NET and Windows Azure : Windows Workflow Foundation (part 7)
- SOA with .NET and Windows Azure : Windows Workflow Foundation (part 6)
- SOA with .NET and Windows Azure : Windows Workflow Foundation (part 5) - WF Programming Model
- SOA with .NET and Windows Azure : Windows Workflow Foundation (part 4) - Activities
- SOA with .NET and Windows Azure : Windows Workflow Foundation (part 3) - Workflow Persistence
- SOA with .NET and Windows Azure : Windows Workflow Foundation (part 2) - Workflows
 
 
 
Top 10
 
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 2) - Wireframes,Legends
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Finding containers and lists in Visio (part 1) - Swimlanes
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Formatting and sizing lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Adding shapes to lists
- Microsoft Visio 2013 : Adding Structure to Your Diagrams - Sizing containers
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 3) - The Other Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 2) - The Data Properties of a Control
- Microsoft Access 2010 : Control Properties and Why to Use Them (part 1) - The Format Properties of a Control
- Microsoft Access 2010 : Form Properties and Why Should You Use Them - Working with the Properties Window
- Microsoft Visio 2013 : Using the Organization Chart Wizard with new data
- First look: Apple Watch

- 3 Tips for Maintaining Your Cell Phone Battery (part 1)

- 3 Tips for Maintaining Your Cell Phone Battery (part 2)
programming4us programming4us